#ifndef __PATH_STACK__
#define __PATH_STACK__
#include <my_header.h>

typedef struct sNode_s
{
    char pathname[100];
    struct sNode_s *next;
    struct sNode_s *prev;
}sNode_t;

typedef struct pathStack_s
{
    sNode_t *bottom;
    sNode_t *top;
    int stackNum;
}pathStack_t;

int pathStackInit(pathStack_t *pathStack);
int pathStackPush(pathStack_t *pathStack,char* name);
int pathStackPop(pathStack_t *pathStack);
int pathStackClear(pathStack_t *pathStack);
int printPathStack(pathStack_t *pathStack);



#endif
